﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class BgTheme : MonoBehaviour
{
    private SpriteRenderer spriteRenderer;


    // Start is called before the first frame update
    void Start()
    {
        spriteRenderer = GetComponent<SpriteRenderer>();

        int ranValue = Random.Range(0, ManagerVars.Instance.bgThemeSpriteList.Count);
        spriteRenderer.sprite = ManagerVars.Instance.bgThemeSpriteList[ranValue];

    }
}
